<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Stack and Calling (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="Stack and Calling (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="Stack and Calling (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Target-Macros.html" rel="up" title="Target Macros">
<link href="Varargs.html" rel="next" title="Varargs">
<link href="Register-Classes.html" rel="prev" title="Register Classes">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en">
<div class="section-level-extent" id="Stack-and-Calling">
<div class="nav-panel">
<p>
Next: <a href="Varargs.html" accesskey="n" rel="next">Implementing the Varargs Macros</a>, Previous: <a href="Register-Classes.html" accesskey="p" rel="prev">Register Classes</a>, Up: <a href="Target-Macros.html" accesskey="u" rel="up">Target Description Macros and Functions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h3 class="section" id="Stack-Layout-and-Calling-Conventions"><span>18.9 Stack Layout and Calling Conventions<a class="copiable-link" href="#Stack-Layout-and-Calling-Conventions"> &para;</a></span></h3>
<a class="index-entry-id" id="index-calling-conventions"></a>

<p>This describes the stack layout and calling conventions.
</p>

<ul class="mini-toc">
<li><a href="Frame-Layout.html" accesskey="1">Basic Stack Layout</a></li>
<li><a href="Exception-Handling.html" accesskey="2">Exception Handling Support</a></li>
<li><a href="Stack-Checking.html" accesskey="3">Specifying How Stack Checking is Done</a></li>
<li><a href="Frame-Registers.html" accesskey="4">Registers That Address the Stack Frame</a></li>
<li><a href="Elimination.html" accesskey="5">Eliminating Frame Pointer and Arg Pointer</a></li>
<li><a href="Stack-Arguments.html" accesskey="6">Passing Function Arguments on the Stack</a></li>
<li><a href="Register-Arguments.html" accesskey="7">Passing Arguments in Registers</a></li>
<li><a href="Scalar-Return.html" accesskey="8">How Scalar Function Values Are Returned</a></li>
<li><a href="Aggregate-Return.html" accesskey="9">How Large Values Are Returned</a></li>
<li><a href="Caller-Saves.html">Caller-Saves Register Allocation</a></li>
<li><a href="Function-Entry.html">Function Entry and Exit</a></li>
<li><a href="Profiling.html">Generating Code for Profiling</a></li>
<li><a href="Tail-Calls.html">Permitting tail calls</a></li>
<li><a href="Shrink_002dwrapping-separate-components.html">Shrink-wrapping separate components</a></li>
<li><a href="Stack-Smashing-Protection.html">Stack smashing protection</a></li>
<li><a href="Miscellaneous-Register-Hooks.html">Miscellaneous register hooks</a></li>
</ul>
</div>



</body>
</html>
